package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.commodity.models.dto.BrandInfoDTO;
import com.ztgf.commodity.models.vo.CommodityShopBrandVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-25 13:53
 * Description:
 */
@Mapper
public interface BrandInfoMapper extends BaseMapper<BrandInfoDTO> {

    /**
     * description: 查询店铺下所有品牌
     * param: [shopId]
     * author: chenyu.wang
     * date: 2020-07-23
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityShopBrandVO>
     */
    List<CommodityShopBrandVO> queryShopBrandList(@Param("shopId") Long shopId);


    /**
     * description: 查询店铺下所有品牌
     * param: [shopId]
     * author: chenyu.wang
     * date: 2020-07-23
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityShopBrandVO>
     */
    List<CommodityShopBrandVO> queryShopBrandListByShopIdAndBrandId(@Param("shopId") Long shopId,@Param("brandId") Long brandId);


    List<BrandInfoDTO> queryList(@Param("initials") String initials, @Param("shopId") Long shopId);
}
